package test.wrc.com.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class MyBroadcastReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context, "MyBroadcastReceiver：" + intent.getStringExtra("data"), Toast.LENGTH_SHORT).show();
//        abortBroadcast();//可以截断消息
    }
}
